package developer.核心类.线程;

import java.util.concurrent.ArrayBlockingQueue;
import java.util.concurrent.ThreadPoolExecutor;
import java.util.concurrent.TimeUnit;

/**
 * @author zhangyongkang
 * @time 2025/8/13 14:12
 * @description
 */
public class ThreadPool {
    public static void main(String[] args) {
        ThreadPoolExecutor threadPoolExecutor = new ThreadPoolExecutor(
                1,
                2,
                1,
                TimeUnit.MINUTES,
                new ArrayBlockingQueue<>(10)
        );

        threadPoolExecutor.execute(() -> {
        });

    }
}
